import employees from '@/assets/constant/employees.js'
import dayjs from 'dayjs'
export default {
  hireType(id) {
    const res = employees.hireType.find((item) => item.id === id)
    return res ? res.value : '-'
  },
  formatTime(time) {
    return dayjs(time).format('YYYY-MM-DD')
  }
}
